var userName = null;
var myAjaxRules = null;
var logWindow = null;

$(document).ready(function() {
    myAjaxRules = new MyAjaxRules(verFancyMensaje, verFancyMensajeModal, function () {
        $.fancybox.close();
    });
    
    function fnLog(log) {        
        if (logWindow == null) {
            logWindow = window.open("", '_blank');
        }
        //var msg = log.replace(/\n/,"<br/>");
        logWindow.document.write(log);
        window.focus();
    }
    init_cesta();
    init_login();
             
$("#mensajes").fancybox();
    
});
